/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.piza.toolcenter.operation;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author cwb
 */
public class SessionContext {

    private Map<String,Object> objMap=new HashMap<String,Object>();

    public void addItem(String nameKey,Object obj){
        objMap.put(nameKey, obj);
    }

    public Object getItem(String nameKey){
        if(!objMap.containsKey(nameKey)){
            return null;
        }
       return objMap.get(nameKey);
    }

    public void clean(){
        objMap=new HashMap<String,Object>();
    }

}
